from pydantic import BaseModel
from typing import List
import datetime


class Base(BaseModel):
    pass


class ResponseBase(BaseModel):
    id: int


class GetRoleDetail(Base):
    name: str
    create_date: datetime.datetime


class AddRole(Base):
    name: str


class UpdateRole(Base):
    name: str


class TestRole(Base):
    name: str


class AddPowerReq(Base):
    role_id: int
    power_list: List[int]


class AddPowerResp(ResponseBase):
    msg: str

class RemodePowerReq(Base):
    role_id: int
    power_list: List[int]

class RemodePowerResp(Base):
    msg: str